package com.yx.robot.bean.robot;

public class Power implements Clear {
    public double x;
    public double y;
    public float rotation;

    public void set(double x,double y){
        this.x=x;
        this.y=y;
    }
    public void set(double x,double y,float r){
        this.x=x;
        this.y=y;
        this.rotation=r;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public float getRotation() {
        return rotation;
    }

    public void setRotation(float rotation) {
        this.rotation = rotation;
    }

    @Override
    public void clear() {
        x = 0;
        y = 0;
        rotation = 0;
    }
}
